Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal10 #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Drupal10 #17

wants to merge 3 commits into from

Conversation

agentrickard
Copy link
Contributor

Makes changes to the core dependency set:

  • Use php 8.2
  • Use Drupal 10.1
  • Add admin_toolbar and examples modules for extra testing

Changes automated test runners to leverage ddev

  • ddev phpunit to test the project
  • ddev rector [MODULE] to test a module

This second command automatically copies drupal-rector/fixtures/d9/rector_examples to web/modules/contrib for testing any new features.

Questions

phpunit

I am gettiing phpunit fails and a warning:

1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
Pass Rector (DrupalRector\Tests\Rector\Deprecation\PassRector\PassRector)
 ✔  with data set 0
 ☢  with data set 1
   ┐
   ├ Error: Call to undefined method DrupalRector\Rector\Deprecation\PassRector::removeNode()
   │
   │ /var/www/html/drupal-rector/src/Rector/Deprecation/PassRector.php:56
   │ /var/www/html/drupal-rector/vendor/rector/rector-src/src/Rector/AbstractRector.php:201
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:123
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:223
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:114
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:223
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:114
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:223
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:114
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:223
   │ /var/www/html/drupal-rector/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php:91
   │ /var/www/html/drupal-rector/vendor/rector/rector-src/src/PhpParser/NodeTraverser/RectorNodeTraverser.php:41
   │ /var/www/html/drupal-rector/vendor/rector/rector-src/src/Application/FileProcessor.php:35
   │ /var/www/html/drupal-rector/vendor/rector/rector-src/src/Application/FileProcessor/PhpFileProcessor.php:76
   │ /var/www/html/drupal-rector/vendor/rector/rector-src/src/Application/ApplicationFileProcessor.php:129
   │ /var/www/html/drupal-rector/vendor/rector/rector-src/packages/Testing/PHPUnit/AbstractRectorTestCase.php:182
   │ /var/www/html/drupal-rector/vendor/rector/rector-src/packages/Testing/PHPUnit/AbstractRectorTestCase.php:153
   │ /var/www/html/drupal-rector/vendor/rector/rector-src/packages/Testing/PHPUnit/AbstractRectorTestCase.php:121
   │ /var/www/html/drupal-rector/tests/src/Rector/Deprecation/PassRector/PassRectorTest.php:17
   ┴

rector

Running ddev rector rector_examples throws:

[ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertCacheTagTest.
         php" file, due to:                                                                         
         "System error: "Method assertCacheTag() was not found in reflection of class               
         Drupal\Tests\rector_examples\Functional\AssertCacheTagTest."                               
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertElementPresen
         tTest.php" file, due to:                                                                   
         "System error: "Method assertElementPresent() was not found in reflection of class         
         Drupal\Tests\rector_examples\Functional\AssertElementPresentTest."                         
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertEqualTest.php
         " file, due to:                                                                            
         "System error: "Method assertEqual() was not found in reflection of class                  
         Drupal\Tests\rector_examples\Functional\AssertEqualTest."                                  
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertEscapedTest.p
         hp" file, due to:                                                                          
         "System error: "Method assertEscaped() was not found in reflection of class                
         Drupal\Tests\rector_examples\Functional\AssertEscapedTest."                                
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertFieldCheckedT
         est.php" file, due to:                                                                     
         "System error: "Method assertFieldChecked() was not found in reflection of class           
         Drupal\Tests\rector_examples\Functional\AssertFieldCheckedTest."                           
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertFieldTest.php
         " file, due to:                                                                            
         "System error: "Method assertField() was not found in reflection of class                  
         Drupal\Tests\rector_examples\Functional\AssertFieldTest."                                  
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertHeaderTest.ph
         p" file, due to:                                                                           
         "System error: "Method assertHeader() was not found in reflection of class                 
         Drupal\Tests\rector_examples\Functional\AssertHeaderTest."                                 
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertIdenticalObje
         ctTest.php" file, due to:                                                                  
         "System error: "Method assertIdenticalObject() was not found in reflection of class        
         Drupal\Tests\rector_examples\Functional\AssertIdenticalObjectTest."                        
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertIdenticalTest
         .php" file, due to:                                                                        
         "System error: "Method assertIdentical() was not found in reflection of class              
         Drupal\Tests\rector_examples\Functional\AssertIdenticalTest."                              
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertLinkByHrefTes
         t.php" file, due to:                                                                       
         "System error: "Method assertLinkByHref() was not found in reflection of class             
         Drupal\Tests\rector_examples\Functional\AssertLinkByHrefTest."                             
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertLinkTest.php"
         file, due to:                                                                              
         "System error: "Method assertLink() was not found in reflection of class                   
         Drupal\Tests\rector_examples\Functional\AssertLinkTest."                                   
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertOptionTest.ph
         p" file, due to:                                                                           
         "System error: "Method assertOption() was not found in reflection of class                 
         Drupal\Tests\rector_examples\Functional\AssertOptionTest."                                 
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertPatternTest.p
         hp" file, due to:                                                                          
         "System error: "Method assertPattern() was not found in reflection of class                
         Drupal\Tests\rector_examples\Functional\AssertPatternTest."                                
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertRawTest.php" 
         file, due to:                                                                              
         "System error: "Method assertRaw() was not found in reflection of class                    
         Drupal\Tests\rector_examples\Functional\AssertRawTest."                                    
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertResponseTest.
         php" file, due to:                                                                         
         "System error: "Method assertResponse() was not found in reflection of class               
         Drupal\Tests\rector_examples\Functional\AssertResponseTest."                               
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertTest.php"    
         file, due to:                                                                              
         "System error: "Method assert() was not found in reflection of class                       
         Drupal\Tests\rector_examples\Functional\AssertTest."                                       
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertTextTest.php"
         file, due to:                                                                              
         "System error: "Method assertText() was not found in reflection of class                   
         Drupal\Tests\rector_examples\Functional\AssertTextTest."                                   
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertTitleTest.php
         " file, due to:                                                                            
         "System error: "Method assertTitle() was not found in reflection of class                  
         Drupal\Tests\rector_examples\Functional\AssertTitleTest."                                  
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertUniqueTextTes
         t.php" file, due to:                                                                       
         "System error: "Method assertUniqueText() was not found in reflection of class             
         Drupal\Tests\rector_examples\Functional\AssertUniqueTextTest."                             
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/AssertUrlTest.php" 
         file, due to:                                                                              
         "System error: "Method assertUrl() was not found in reflection of class                    
         Drupal\Tests\rector_examples\Functional\AssertUrlTest."                                    
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/BuildXpathQueryTest
         .php" file, due to:                                                                        
         "System error: "Method buildXPathQuery() was not found in reflection of class              
         Drupal\Tests\rector_examples\Functional\BuildXpathQueryTest."                              
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/ConstructFieldXpath
         Test.php" file, due to:                                                                    
         "System error: "Method constructFieldXpath() was not found in reflection of class          
         Drupal\Tests\rector_examples\Functional\ConstructFieldXpathTest."                          
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/GetAllOptionsTest.p
         hp" file, due to:                                                                          
         "System error: "Method getAllOptions() was not found in reflection of class                
         Drupal\Tests\rector_examples\Functional\GetAllOptionsTest."                                
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/GetRawContentTest.p
         hp" file, due to:                                                                          
         "System error: "Method getRawContent() was not found in reflection of class                
         Drupal\Tests\rector_examples\Functional\GetRawContentTest."                                
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454
                                                                                                    

                                                                                                    
 [ERROR] Could not process                                                                          
         "/var/www/html/web/modules/contrib/rector_examples/tests/src/Functional/PassTest.php" file,
         due to:                                                                                    
         "System error: "Method pass() was not found in reflection of class                         
         Drupal\Tests\rector_examples\Functional\PassTest."                                         
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant